package com.demo.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.demo.common.vo.BasePage;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 用户搜索请求类
 */
@Data
public class SysUserSearchReq extends BasePage {

    /**
     * 用户id
     */
    private Integer id;
    /**
     * 角色ids
     */
    private List<Integer> roleIds;
    /**
     * 手机号
     */
    private String mobile;
    /**
     * 状态
     */
    private Integer status;
    /**
     * 注册开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime startTime;
    /**
     * 注册结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime endTime;
}
